package com.example.content.fragment.me.coin

import com.example.content.ME_FILL_BANK_INFO_TYPE
import com.example.content.ME_SELECT_PAY_CARD_TYPE
import com.example.content.R
import com.example.content.databinding.FragmentAddBankCardBinding
import com.example.content.fragment.BaseMvvmFragment
import com.example.content.manager.ActivityMgr
import com.example.content.viewmodule.me.MyPageCommonViewModel

class AddBankCardFragment : BaseMvvmFragment<FragmentAddBankCardBinding, MyPageCommonViewModel>() {

    override fun initView() {
        dataBinding.titleBar.title.text = getString(R.string.add_bank_card)
    }

    override fun initListener() {
        dataBinding.titleBar.backIcon.setOnClickListener {
            activity?.finish()
        }
        dataBinding.submitBankCard.setOnClickListener {
            ActivityMgr.startFragment(ME_FILL_BANK_INFO_TYPE)
        }
    }

    override fun getViewModuleClass(): Class<MyPageCommonViewModel> {
        return MyPageCommonViewModel::class.java
    }

    override fun getLayoutId() = R.layout.fragment_add_bank_card

    companion object {
        @JvmStatic
        fun newInstance() = AddBankCardFragment()
    }
}